/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package maxent.mr.tagger;

import java.io.IOException;
import java.util.Iterator;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.MapReduceBase;
import org.apache.hadoop.mapred.OutputCollector;
import org.apache.hadoop.mapred.Reducer;
import org.apache.hadoop.mapred.Reporter;

/**
 *
 * @author hadoop
 */
 public class TaggerReducer extends MapReduceBase
        implements Reducer<LongWritable,Text,NullWritable,Text>{

    public void reduce(LongWritable key, Iterator<Text> values, OutputCollector<NullWritable, Text> output, Reporter reporter) throws IOException {

        output.collect(null, values.next());

    }

}